home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cug187
/
skptok.c
< prev
next >
Wrap
C/C++ Source or Header
|
1985-12-30
|
889b
|
24 lines
/*@*****************************************************/
/*@ */
/*@ skptok - skip over a token (to next delimiter). */
/*@ A blank, ';', or NULL will terminate it. */
/*@ */
/*@ Usage: skptok(cbuf); */
/*@ where cbuf is a pointer to characters. */
/*@ */
/*@ Returns a pointer to the char which terminated */
/*@ the scan (i.e. the blank, ';' or NULL). */
/*@ */
/*@*****************************************************/
#define NULL 0x00
char *skptok(cbuf)
char *cbuf;
{
/* skip token in buffer */
for(;(*cbuf != ' ') && (*cbuf != ';') && (*cbuf != NULL);cbuf++)
;
return (cbuf);
}